package com.guomao;

public class JavaDemo12 {

    public static void main(String[] args) {

        m1();
    }

    //stackoverflowerror
    //outofmemoryerror
    public static void m1(){
        System.out.println("m1 invoke!");
        m2();
    }

    public static void m2(){
        System.out.println("m2 invoke!");
        m3();
    }

    public static void m3(){
        System.out.println("m3 invoke!");
        m4();
    }

    public static void m4(){
        System.out.println("m4 invoke!");
        m5();
    }

    public static void m5(){
        System.out.println("m5 invoke!");
    }
}
